package com.rerun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;


/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author GaoJun.Zhou
 * @since 2017 -03-06
 */
@TableName("sys_menu")
public class SysMenu extends Model<SysMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type=IdType.UUID)
	private String id;
    /**
     * 菜单名称
     */
	private String menuName;
    /**
     * 父级菜单ID
     */
	private String pid;
    /**
     * 连接地址
     */
	private String url;
    /**
     * 图标
     */
	private String icon;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 深度
     */
	private Integer deep;
    /**
     * 编码
     */
	private String code;
    /**
     * 资源名称
     */
	private String resource;


    /**
     * Gets id.
     *
     * @return the id
     */
    public String getId() {
		return id;
	}

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(String id) {
		this.id = id;
	}

    /**
     * Gets menu name.
     *
     * @return the menu name
     */
    public String getMenuName() {
		return menuName;
	}

    /**
     * Sets menu name.
     *
     * @param menuName the menu name
     */
    public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

    /**
     * Gets pid.
     *
     * @return the pid
     */
    public String getPid() {
		return pid;
	}

    /**
     * Sets pid.
     *
     * @param pid the pid
     */
    public void setPid(String pid) {
		this.pid = pid;
	}

    /**
     * Gets url.
     *
     * @return the url
     */
    public String getUrl() {
		return url;
	}

    /**
     * Sets url.
     *
     * @param url the url
     */
    public void setUrl(String url) {
		this.url = url;
	}

    /**
     * Gets icon.
     *
     * @return the icon
     */
    public String getIcon() {
		return icon;
	}

    /**
     * Sets icon.
     *
     * @param icon the icon
     */
    public void setIcon(String icon) {
		this.icon = icon;
	}

    /**
     * Gets sort.
     *
     * @return the sort
     */
    public Integer getSort() {
		return sort;
	}

    /**
     * Sets sort.
     *
     * @param sort the sort
     */
    public void setSort(Integer sort) {
		this.sort = sort;
	}

    /**
     * Gets deep.
     *
     * @return the deep
     */
    public Integer getDeep() {
		return deep;
	}

    /**
     * Sets deep.
     *
     * @param deep the deep
     */
    public void setDeep(Integer deep) {
		this.deep = deep;
	}

    /**
     * Gets code.
     *
     * @return the code
     */
    public String getCode() {
		return code;
	}

    /**
     * Sets code.
     *
     * @param code the code
     */
    public void setCode(String code) {
		this.code = code;
	}

    /**
     * Gets resource.
     *
     * @return the resource
     */
    public String getResource() {
		return resource;
	}

    /**
     * Sets resource.
     *
     * @param resource the resource
     */
    public void setResource(String resource) {
		this.resource = resource;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
